package com.design.pattern.facade;

/**
 * @version 1.0
 * @author: CRM_SYSTEM
 * @date: 2022/10/12 22:04
 * @Description:
 */
public class FacadeService {

    QualifyService qualifyService=new QualifyService();
    PaymentService paymentService=new PaymentService();
    ShippingService shippingService=new ShippingService();

    public boolean isOrder(){
        if (qualifyService.isAvailable()){
            if (paymentService.isPay()){
                if (shippingService.isShipping()){
                    System.out.printf("完成");
                }
            }
        }
        return true;
    }
}
